package com.example.demomongodb.entity;

import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;

@Entity("user") //指定当前实体类对应的表
public class User {
    @Id //用来标识主键
    private String id;

    private String username;

    private String password;

    public User(String id, String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }
}
